@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/colors";

.add-dns-record {
	.add-dns-record__sidebar {
		display: none;
		margin-top: 20px;
		font-size: $font-body-small;

		div {
			padding: 24px 16px;
			background-color: var(--color-neutral-0);

			strong {
				display: block;
				margin-bottom: 4px;
			}
			p {
				margin: 0;
				color: var(--color-neutral-50);
			}
		}

		@include break-mobile {
			display: block;
		}
	}

	.add-dns-record__main {
		padding: 0 16px;
	}

	@include break-xlarge {
		@include grid-row( 1, 1 );
		@include grid-column( 1, 12 );
		@include display-grid;
		@include grid-template-columns( 12, 24px, 1fr );
		grid-gap: 24px 48px;
		.add-dns-record__main {
			@include grid-column( 1, 8 );

			padding: 0;
		}
		.add-dns-record__sidebar {
			@include grid-column( 9, 4 );

			margin-top: 0;

			div {
				padding: 24px;
			}
		}
		.add-dns-record__fullwidth {
			@include grid-column( 1, 12 );
		}
	}

	.dns__form {
		border-top: none;
		padding-top: 0;

		.is-hidden {
			display: none;
		}
	}

	.form-setting-explanation {
		margin: 8px 0;
		font-style: normal;
	}

	// make the DNS record type `select` expand to full width of the form
	.dns__add-new-select-type {
		width: 100%;
	}

	.dns__form-buttons {
		margin-top: 32px;

		.form-button {
			margin-right: 16px;

			&:last-child {
				margin-right: 0;
			}
		}
	}

	.form-select {
		background:
			var(--color-surface)
			url()
			no-repeat right 10px center;
	}
}
